package com.web.common.util;

import org.springframework.security.authentication.encoding.Md5PasswordEncoder;

public class MD5Util {

	public static String md5(String username,String password){
		Md5PasswordEncoder md5=new Md5PasswordEncoder();
		String md5pwd=md5.encodePassword(password, username);
		return md5pwd;
	}
}
